package com.nuc.zyt.day04.demo.cookfoodie;

import com.sun.javafx.binding.StringFormatter;

import java.util.concurrent.ArrayBlockingQueue;

/**
 * @ClassName CookPlus
 * @Description TODO
 * @Author 耀酱
 * @Date 2023/5/30 8:28
 * @Version 1.0
 */

public class CookPlus extends Thread {

    private ArrayBlockingQueue<String> ab;

    public CookPlus(ArrayBlockingQueue ab){
        this.ab=ab;
    }

    @Override
    public void run() {
        while (true){
            try {
                ab.put("米饭");
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

        }

    }
}
